<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>吃喝玩乐信息发布</title>
<link href="../css/fabu.css?version=20130328" rel="stylesheet" type="text/css" />
<script src="../js/jquery-1.4.2.min.js?version=20130328" type="text/javascript"></script>
<script src="../js/class_select_fabu.js?version=20130328" type="text/javascript"></script>
<script src="../js/jquery-url.js?version=20130328" type="text/javascript"></script>
<script src="../js/formValidator.js?version=20130328" type="text/javascript"></script>
</head>
<body >
	<form name="form1" method="post" action="" id="form1">
		<div>
			<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
				value="/wEPDwUKLTQ1MDg0Njc5Ng9kFgICAw9kFggCEw9kFgICAQ9kFgQCAQ8QDxYGHg1EYXRhVGV4dEZpZWxkBQ50aHJlZWNsYXNzbmFtZR4ORGF0YVZhbHVlRmllbGQFDHRocmVlY2xhc3NpZB4LXyFEYXRhQm91bmRnZBAVFAbmtbfpspwG5bed6I+cBua5mOiPnAznibnoibLppJDljoUG5riF55yfBue0oOmjnwzmsJHml4/po47lkbMM5Li76aKY6aSQ5Y6FBueDp+eDpAbmlpnnkIYG57Kl6ZO6CeiHquWKqemkkAnopb/ppJDljoUM6Z2i5YyF55Sc54K5BumFkualvAbkuK3ppJAG5b+r6aSQBumAgemkkAbngavplIUG5YW25a6DFRQDNzU4Azc1OQM3NjADNzYxAzc2MgM3NjMDNzY0Azc2NQM3NjYDNzY3Azc2OAM3NjkDNzcwAzc3MQM3NzIDOTMxAzk0MAM5OTMDOTk2Azk5NxQrAxRnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2RkAgMPEA8WBh8ABQxiaWFvcWlhbm5hbWUfAQUMYmlhb3FpYW5uYW1lHwJnZBAVBwnkuJzljZfkupoG5pel6Z+pBuasp+a0sgbmvrPmtLIM6Z2e5rSy5Lit5LicBue+jua0sgblhbbku5YVBwnkuJzljZfkupoG5pel6Z+pBuasp+a0sgbmvrPmtLIM6Z2e5rSy5Lit5LicBue+jua0sgblhbbku5YUKwMHZ2dnZ2dnZ2RkAh8PEA8WBh8ABQRzaG93HwEFAmlkHwJnZBAVCQnkuI3miZPmipgJ5Lmd5LqU5oqYBuS5neaKmAnlhavlhavmipgJ5YWr5LqU5oqYBuWFq+aKmAbkuIPmipgG5YWt5oqYDOWFreaKmOS7peS4ixUJBDQwMjQENDAyNQQ0MDI2BDQwMjcENDAyOAQ0MDI5BDQwMzAENDAzMQQ0MDMyFCsDCWdnZ2dnZ2dnZ2RkAiEPEA8WBh8ABQRzaG93HwEFAmlkHwJnZBAVAg/kuI3mlK/mjIHliLfljaEM5pSv5oyB5Yi35Y2hFQIENDAzMwQ0MDM0FCsDAmdnZGQCIw8QDxYGHwAFBHNob3cfAQUCaWQfAmdkEBUCCeiQpeS4muS4rQnmnKrokKXkuJoVAgQ0MDM1BDQwMzYUKwMCZ2dkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAwUSZGlhbmh1YXlpbmNhbmdfY2hiBRhkaWFueml5b3VqaWFueWluY2FuZ19jaGIFDnFxeWluY2hhbmdfY2hiBR1PVL81hWyRKKxBYizQU+/Vfc0=" />
		</div>

		<table cellpadding="0" cellspacing="0" class="f12 box1">
			<tr>
				<td colspan="2" class="f14 fb">基本信息 <input type="hidden"
					name="smallclassname_hf" id="smallclassname_hf" value="餐厅" /> <input
					type="hidden" name="smallclassfile_hf" id="smallclassfile_hf"
					value="canting" /> <input type="hidden" name="is_shenhe_hf"
					id="is_shenhe_hf" value="0" /> <input type="hidden" name="jf_hf"
					id="jf_hf" value="5" /> <input type="hidden" name="jx_hf"
					id="jx_hf" value="bj" /> <input type="hidden" name="qu_hf"
					id="qu_hf" /> <input type="hidden" name="quan_hf" id="quan_hf" />
					<input type="hidden" name="xiaoqu_hf" id="xiaoqu_hf" />
				</td>
			</tr>

			<tr>
				<td class="bt"><span class="red">*</span>&nbsp;标&nbsp;&nbsp;&nbsp;&nbsp;题：</td>
				<td><input name="xx_title" type="text" id="xx_title"
					class="text1" /><span id="xx_title_Tip"></span></td>
			</tr>

			<tr id="leibie_tr">
				<td class="bt"><span class="red">*</span>&nbsp;类&nbsp;&nbsp;&nbsp;&nbsp;别：</td>
				<td><select name="leibie_ddl" id="leibie_ddl">
						<option value="0">--选择--</option>
					<c:forEach items="${catgListForRelease }" var="item">
						<option value="${item.catgId }">${item.catgName }</option>
					</c:forEach>
				</select>
				 <select name="biaoqian_ddl" id="biaoqian_ddl">
						<option value="东南亚">东南亚</option>
						<option value="日韩">日韩</option>
						<option value="欧洲">欧洲</option>
						<option value="澳洲">澳洲</option>
						<option value="非洲中东">非洲中东</option>
						<option value="美洲">美洲</option>
						<option value="其他">其他</option>

				</select> 
				<span id="leibie_ddl_Tip"></span>
				</td>
			</tr>


			<tr>
				<td class="bt">区域地段：</td>
				<td><select name="Qu" id="Qu">
						<option value="0">--区域--</option>

				</select> <select name="Quan" id="Quan">
						<option value="0">--商圈--</option>

				</select> <select name="xiaoqu" id="xiaoqu">
						<option value="0">--小区--</option>

				</select></td>
			</tr>

			<tr>
				<td class="bt"><span class="red">*</span>&nbsp;营业时间：</td>
				<td><input name="begintime_txb" type="text" value="9:00"
					id="begintime_txb" class="text3" />&nbsp;—&nbsp;<input
					name="endtime_txb" type="text" value="21:00" id="endtime_txb"
					class="text3" /><span id="check_yingyeshijian"></span></td>
			</tr>

			<tr>
				<td class="bt"><span class="red">*</span>&nbsp;折&nbsp;&nbsp;&nbsp;&nbsp;扣：</td>
				<td><select name="zhekou_ddl" id="zhekou_ddl">
						<option value="4024">不打折</option>
						<option value="4025">九五折</option>
						<option value="4026">九折</option>
						<option value="4027">八八折</option>
						<option value="4028">八五折</option>
						<option value="4029">八折</option>
						<option value="4030">七折</option>
						<option value="4031">六折</option>
						<option value="4032">六折以下</option>

				</select> &nbsp;&nbsp;刷卡： <select name="shuaka_ddl" id="shuaka_ddl">
						<option value="4033">不支持刷卡</option>
						<option value="4034">支持刷卡</option>

				</select> &nbsp;&nbsp;营业状态： <select name="yingyezhuangtai_ddl"
					id="yingyezhuangtai_ddl">
						<option value="4035">营业中</option>
						<option value="4036">未营业</option>

				</select></td>
			</tr>

			<tr>
				<td class="bt"><span class="red"></span>&nbsp;优惠信息：</td>
				<td><input name="youhuixinxi_txb" type="text"
					id="youhuixinxi_txb" class="text1" /> <span
					id="youhuixinxi_txb_Tip"></span></td>
			</tr>

			<tr>
				<td class="bt"><span class="red">*</span>&nbsp;信息内容：</td>
				<td><textarea name="xinxineirong_txt" rows="2" cols="20"
						id="xinxineirong_txt" class="textarea1"></textarea> <span
					id="xinxineirong_txt_Tip"></span></td>
			</tr>

			<tr id="uploadimage_tr">
				<td class="bt">图片上传：</td>
				<td><iframe src="./TriggerUpload.jsp" scrolling="no"
						width="100%" frameborder="0" id="fabu_iframe_img"></iframe> <input
					type="hidden" name="ClassSImg_hf" id="ClassSImg_hf" /></td>
			</tr>

			<tr>
				<td colspan="2" class="f14 fb">联系信息</td>
			</tr>
			<tr>
				<td class="bt"><span class="red">*</span>&nbsp;联系地址：</td>
				<td><input name="lianxidizhi_txb" type="text"
					id="lianxidizhi_txb" class="text1" /><span
					id="lianxidizhi_txb_Tip"></span></td>
			</tr>
			<tr>
				<td class="bt"><span class="red">*</span>&nbsp;联系电话：</td>
				<td><input name="lianxidianhua_txb" type="text"
					value="13880544970" id="lianxidianhua_txb" class="text4" /> &nbsp;<span
					style="color: #666666;"><input id="dianhuayincang_chb"
						type="checkbox" name="dianhuayincang_chb" /><label
						for="dianhuayincang_chb">隐藏后4位</label></span> <span
					id="lianxidianhua_txb_Tip"></span></td>
			</tr>
			<tr>
				<td class="bt"><span class="red">*</span>&nbsp;电子邮件：</td>
				<td><input name="dianziyoujian_txb" type="text"
					value="501886861@qq.com" id="dianziyoujian_txb" class="text4" />
					&nbsp;<span style="color: #666666;"><input
						id="dianziyoujianyincang_chb" type="checkbox"
						name="dianziyoujianyincang_chb" /><label
						for="dianziyoujianyincang_chb">隐藏</label></span> <span
					id="dianziyoujian_txb_Tip"></span></td>
			</tr>
			<tr>
				<td class="bt">联系ＱＱ：</td>
				<td><input name="qq_txb" type="text" id="qq_txb" class="text4" />
					&nbsp;<span style="color: #666666;"><input
						id="qqyinchang_chb" type="checkbox" name="qqyinchang_chb" /><label
						for="qqyinchang_chb">隐藏</label></span> <span id="qq_txb_Tip"></span></td>
			</tr>

			<!--
<tr>
    <td class="bt">
    </td>
    <td>
        <div class="login_reg">
            <a href="javascript:void(0);" class="active" id="login_table_a">登录</a> <a class=""
                href="javascript:void(0);" id="register_table_a">注册</a>
        </div>
    </td>
</tr>
<tr title="log">
    <td class="bt">
        <span class="red">*</span>&nbsp;用户名：</td>
    <td>
        <input name="login_txt" type="text" id="login_txt" class="text4" /><span id="login_txt_Tip"></span>
    </td>
</tr>
<tr title="log">
    <td class="bt">
        <span class="red">*</span>&nbsp;登录密码：
    </td>
    <td>
        <input name="login_pwd_txt" id="login_pwd_txt" class="text4" type="password" />
    </td>
</tr>
<tr title="reg">
    <td class="bt">
        <span class="red">*</span>&nbsp;用户名：
    </td>
    <td>
        <input id="register_txt" class="text4" type="text" />
    </td>
</tr>
<tr title="reg">
    <td class="bt">
        <span class="red">*</span>&nbsp;注册手机：
    </td>
    <td>
        <input id="register_shouji_txt" class="text4" type="text" />
    </td>
</tr>
<tr title="reg">
    <td class="bt">
        手机验证码
    </td>
    <td>
        <input id="shouji_yzm_txb" size="20" maxlength="10" class="text4" />
    </td>
</tr>
<tr title="reg">
    <td class="bt">
        <span class="red">*</span>&nbsp;登录密码：
    </td>
    <td>
        <input id="register_pwd_txt" class="text4" type="password" />
    </td>
</tr>-->

			<script type="text/javascript">
				$(function() {
					$("tr[title='reg']").hide();
				});
				$(".login_reg a").click(function() {
					if ($(this).attr("id") == "login_table_a") {
						$("tr[title='log']").show();
						$("tr[title='reg']").hide();
						$("#login_table_a").attr("class", "active");
						$("#register_table_a").attr("class", "");
					} else {
						$("tr[title='log']").hide();
						$("tr[title='reg']").show();
						$("#login_table_a").attr("class", "");
						$("#register_table_a").attr("class", "active");
					}

				});
			</script>


			<tr>
				<td class="bt"></td>
				<td>注册或发布即代表您已阅读并同意<a
					href="http://bbs.fenlei168.com/showtopic-39535.aspx"
					target="_blank">分类168注册协议</a>
				</td>
			</tr>
			<tr>
				<td class="bt"></td>
				<td><input type="submit" name="Button1" value="确定发布"
					id="Button1" class="fabu1" /></td>
			</tr>
		</table>

		<script type="text/javascript">
			$(document)
					.ready(
							function() {
								$.formValidator.initConfig({
									formid : "form1",
									errorfocus : true,
									btnid : 'Button1',
									fun : function() {
										if (!$.c.common.isIeVersion(9)) {
											if (!$.editor.checkHtmlEditor())
												return false; // 内容验证
										}
										return true;
									}
								});
								$("#xx_title")
										.formValidator(
												{
													tipid : "xx_title_Tip",
													onfocus : "6-25个字，不能填写电话和特殊符号<br/>标题将被展示在详情页和列表页最醒目的位置",
													q2b : true,
													'defaultvalue' : ''
												})
										.inputValidator({
											onerror : "请输入标题"
										})
										.regexValidator(
												{
													regexp : "^[\\s\\S]*$#^[\\s\\S]{6,}$#^(.){6,25}$",
													onerror : "请输入标题#标题不足6个字#6-25个字，不能填写电话和特殊符号！"
												})
										.functionValidator(
												{
													fun : function(val, elem) {
														//  var reg=/.[a-zA-Z0-9]+?.com|.[a-zA-Z0-9]+?.cn|.[a-zA-Z0-9]+?.co|.[a-zA-Z0-9]+?.net|.[a-zA-Z0-9]+?.com.cn|.[a-zA-Z0-9]+?.net.cn|.[a-zA-Z0-9]+?.so|.[a-zA-Z0-9]+?.org|.[a-zA-Z0-9]+?.gov.cn|.[a-zA-Z0-9]+?.org.cn|.[a-zA-Z0-9]+?.tel|.[a-zA-Z0-9]+?.tv|.[a-zA-Z0-9]+?.biz|.[a-zA-Z0-9]+?.cc|.[a-zA-Z0-9]+?.hk|.[a-zA-Z0-9]+?.name|.[a-zA-Z0-9]+?.info|.[a-zA-Z0-9]+?.asia|.[a-zA-Z0-9]+?.me/;
														/* while ((arr = reg.exec(val)) != null)
														 {
														  //将字符替换成*
														  val=val.replace(reg,"*"); 
														 } */
														var reg1 = "";
														var titleval = $(
																"#xx_title")
																.val();
														$
																.ajax({
																	type : "POST",
																	url : "checkkeywords.aspx?key="
																			+ titleval
																			+ "",
																	data : "",
																	success : function(
																			msg) {
																		reg1 = msg;
																		if (reg1 == "1") {
																			alert("标题含有敏感词");
																			$(
																					"#xx_title")
																					.val(
																							"");
																		}
																	}

																});

														$("#xx_title").val(val);
														return $.formValidator
																.checkTitle(val);
													},
													onerror : "标题太过简单"
												});
								$("#leibie_ddl").formValidator({
									tipid : "leibie_ddl_Tip",
									onfocus : ""
								}).inputValidator({
									min : 0,
									onerror : "请选择类别",
									type : "radio"
								});
								$("#xinxineirong_txt")
										.formValidator(
												{
													tipid : "xinxineirong_txt_Tip",
													onfocus : "10~2000个字之间，不能填写电话、QQ等联系方式或特殊符号，否则信息将会被删除",
													'defaultvalue' : ''
												})
										.inputValidator({
											onerror : "请填写补充说明"
										})
										.regexValidator(
												{
													regexp : "^[\\s\\S]*$#^[\\s\\S]{10,}$#^([\\s\\S]){10,2000}$",
													onerror : "请填写补充说明#补充说明不足10个字#补充说明应在10~2000个字之间，不能填写电话、QQ等联系方式"
												})
										.functionValidator(
												{
													fun : function(val, elem) {
														/*  var reg=/.[a-zA-Z0-9]+?.com|.[a-zA-Z0-9]+?.cn|.[a-zA-Z0-9]+?.co|.[a-zA-Z0-9]+?.net|.[a-zA-Z0-9]+?.com.cn|.[a-zA-Z0-9]+?.net.cn|.[a-zA-Z0-9]+?.so|.[a-zA-Z0-9]+?.org|.[a-zA-Z0-9]+?.gov.cn|.[a-zA-Z0-9]+?.org.cn|.[a-zA-Z0-9]+?.tel|.[a-zA-Z0-9]+?.tv|.[a-zA-Z0-9]+?.biz|.[a-zA-Z0-9]+?.cc|.[a-zA-Z0-9]+?.hk|.[a-zA-Z0-9]+?.name|.[a-zA-Z0-9]+?.info|.[a-zA-Z0-9]+?.asia|.[a-zA-Z0-9]+?.me/;
														 while ((arr = reg.exec(val)) != null)
														 {
														  //将字符替换成*
														  val=val.replace(reg,"*"); 
														 } */
														$("#xinxineirong_txt")
																.val(val);
														return $.formValidator
																.checkContent(val);
													},
													onerror : "内容太过简单"
												});

								$("#lianxidianhua_txb")
										.formValidator({
											tipid : "lianxidianhua_txb_Tip",
											onfocus : "请正确填写电话号码，分机可以用“-”分开",
											q2b : true,
											'defaultvalue' : ''
										})
										.inputValidator({
											onerror : "请填写电话号码"
										})
										.regexValidator(
												{
													regexp : "(^(0\\d{2,3})?-?([2-9]\\d{6,7})(-\\d{1,5})?$)|(^((\\(\\d{3}\\))|(\\d{0}))?(13|14|15|18)\\d{9}$)|(^(400|800)\\d{7}(-\\d{1,5})?$)|(^(95013)\\d{6,8}$)",
													onerror : "电话填写错误。<br/>请参照格式填写：87654321-001或138********"
												});

								$('#qq_txb')
										.formValidator(
												{
													tipid : 'qq_txb_Tip',
													onfocus : '只能填写一个qq或msn。<br>格式如：123456 或 myname@58.com',
													q2b : true,
													'empty' : true
												})
										.regexValidator(
												{
													regexp : "(^(180|189|133|153)\\d{4,8}$)|(^[1-9]\\d{4,9}$)|(^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$)",
													onerror : "QQ或MSN输入错误"
												});

								$('#dianziyoujian_txb')
										.formValidator(
												{
													tipid : 'dianziyoujian_txb_Tip',
													onfocus : '请正确填写邮箱地址。<br>格式如：myEmail@163.com',
													q2b : true,
													'empty' : false
												})
										.regexValidator(
												{
													regexp : "(^\\w+((-\\w+)|(\\.\\w+))*\\@[A-Za-z0-9]+((\\.|-)[A-Za-z0-9]+)*\\.[A-Za-z0-9]+$)",
													onerror : "邮箱地址输入错误"
												});

								$('#lianxidizhi_txb')
										.formValidator({
											tipid : 'lianxidizhi_txb_Tip',
											onfocus : '请填写详细地址',
											q2b : true,
											'defaultvalue' : ''
										})
										.regexValidator(
												{
													regexp : "\\S+#^(.){2,45}$#^([^\\s]\\s{0,3}(?!([0-9０１２３４５６７８９零一二三四五六七八九壹贰叁肆伍陆柒捌玖]{6})))+$#^[\\w\\[\\]\\(\\)\\{\\}\\.\\s,\\-\\*，。（）【】“”—‘’\\u4e00-\\u9fa5]*$",
													onerror : "请输入详细地址#地址不足2个字#地址里不能填写电话#地址里不能输入特殊字符"
												})
										.functionValidator(
												{
													fun : function(val, elem) {
														var reg = /.[a-zA-Z0-9]+?.com|.[a-zA-Z0-9]+?.cn|.[a-zA-Z0-9]+?.co|.[a-zA-Z0-9]+?.net|.[a-zA-Z0-9]+?.com.cn|.[a-zA-Z0-9]+?.net.cn|.[a-zA-Z0-9]+?.so|.[a-zA-Z0-9]+?.org|.[a-zA-Z0-9]+?.gov.cn|.[a-zA-Z0-9]+?.org.cn|.[a-zA-Z0-9]+?.tel|.[a-zA-Z0-9]+?.tv|.[a-zA-Z0-9]+?.biz|.[a-zA-Z0-9]+?.cc|.[a-zA-Z0-9]+?.hk|.[a-zA-Z0-9]+?.name|.[a-zA-Z0-9]+?.info|.[a-zA-Z0-9]+?.asia|.[a-zA-Z0-9]+?.me/;
														while ((arr = reg
																.exec(val)) != null) {
															//将字符替换成*
															val = val.replace(
																	reg, "*");
														}
														$("#lianxidizhi_txb")
																.val(val);
														return $.formValidator
																.checkContent(val);
													},
													onerror : "地址太过简单"
												});
								$("#youhuixinxi_txb")
										.formValidator(
												{
													tipid : "youhuixinxi_txb_Tip",
													onfocus : "优惠信息，6-25个字，不能填写电话和特殊符号",
													q2b : true,
													'empty' : true,
													'defaultvalue' : ''
												})
										.inputValidator({
											onerror : "请输入优惠信息"
										})
										.regexValidator(
												{
													regexp : "^[\\s\\S]*$#^[\\s\\S]{6,}$#^(.){6,25}$",
													onerror : "请输入优惠信息#优惠信息不足6个字#6-25个字，不能填写电话和特殊符号！"
												})
										.functionValidator(
												{
													fun : function(val, elem) {
														var reg = /.[a-zA-Z0-9]+?.com|.[a-zA-Z0-9]+?.cn|.[a-zA-Z0-9]+?.co|.[a-zA-Z0-9]+?.net|.[a-zA-Z0-9]+?.com.cn|.[a-zA-Z0-9]+?.net.cn|.[a-zA-Z0-9]+?.so|.[a-zA-Z0-9]+?.org|.[a-zA-Z0-9]+?.gov.cn|.[a-zA-Z0-9]+?.org.cn|.[a-zA-Z0-9]+?.tel|.[a-zA-Z0-9]+?.tv|.[a-zA-Z0-9]+?.biz|.[a-zA-Z0-9]+?.cc|.[a-zA-Z0-9]+?.hk|.[a-zA-Z0-9]+?.name|.[a-zA-Z0-9]+?.info|.[a-zA-Z0-9]+?.asia|.[a-zA-Z0-9]+?.me/;
														while ((arr = reg
																.exec(val)) != null) {
															//将字符替换成*
															val = val.replace(
																	reg, "*");
														}
														$("#youhuixinxi_txb")
																.val(val);
														return $.formValidator
																.checkContent(val);
													},
													onerror : "优惠信息太过简单"
												});
								$("#register_shouji_txt")
										.formValidator({
											tipid : "register_shouji_txt_Tip",
											onfocus : "请正确填写手机号码",
											q2b : true,
											'defaultvalue' : ''
										})
										.inputValidator({
											onerror : "请填写手机号码"
										})
										.regexValidator(
												{
													regexp : "(^((\\(\\d{3}\\))|(\\d{0}))?(13|14|15|18)\\d{9}$)",
													onerror : "手机填写错误。<br/>请参照格式填写：138********"
												}).functionValidator({
											fun : function(a) {
												if ($.user_fabu.u_check_sj(a))
													return "手机号已被注册";
												else {
													return true;
												}
											},
											onerror : "格式不正确。"
										});

								$("#login_txt").formValidator({
									tipid : "login_txt_Tip",
									onfocus : "使用已注册的账号登陆！",
									q2b : true,
									'defaultvalue' : ''
								}).inputValidator({
									onerror : "请输入用户名！"
								}).regexValidator({
									regexp : "\\S+#^[\\s\\S]{2,}$",
									onerror : "用户名填写错误。"
								});

								$("#register_txt")
										.formValidator(
												{
													tipid : "register_txt_Tip",
													onfocus : "新注册一个账户：<br>不超过10个字或20个字符（数字、字母或下划线）",
													q2b : true,
													'defaultvalue' : ''
												})
										.inputValidator({
											onerror : "请输入用户名！"
										})
										.regexValidator(
												{
													regexp : "\\S+#^[\\s\\S]{2,}$#^[\u4e00-\u9fa5a-z0-9_]{3,16}$",
													onerror : "\u8bf7\u8f93\u5165\u7528\u6237\u540d#\u4e0d\u8db32\u4e2a\u5b57#格式不正确"
												})
										.functionValidator(
												{
													fun : function(a) {
														if (checkReg_Name(a) < 4)
															return "\u4e0d\u80fd\u5c11\u4e8e2\u4e2a\u6c49\u5b57\u62164\u4e2a\u5b57\u7b26";
														else if (checkReg_Name(a) > 20)
															return "\u4e0d\u80fd\u8d85\u8fc710\u4e2a\u6c49\u5b57\u621620\u4e2a\u5b57\u7b26";
														else if (/^\d+$/
																.test(a))
															return "\u7528\u6237\u540d\u4e0d\u80fd\u5168\u4e3a\u6570\u5b57 ";
														else if ($.user_fabu
																.u_check_name(a))
															return "\u7528\u6237\u540d\u5df2\u88ab\u6ce8\u518c";
														else {
															return true;
														}
													},
													onerror : "格式不正确。"
												});

								$("#shouji_yzm_txb").formValidator({
									tipid : "shouji_yzm_txb_Tip",
									onfocus : "请正确填写手机验证码",
									q2b : true,
									'defaultvalue' : ''
								}).inputValidator({
									onerror : "请填写手机验证码"
								}).regexValidator({
									regexp : "^[1-9]\\d{0,5}$",
									onerror : "手机验证码填写错误。"
								}).functionValidator(
										{
											fun : function() {
												if ($("#sj_yzm_hf").val() == $(
														"#shouji_yzm_txb")
														.val()) {
													return true;
												} else {
													return false;
												}
											},
											onerror : "手机验证码不匹配"
										});

								$("#register_pwd_txt")
										.formValidator(
												{
													tipid : "register_pwd_txt_Tip",
													onfocus : "请输入登录密码：6-16个字符(数字，字母和下划线组成，区分大小写。)",
													q2b : true,
													'defaultvalue' : ''
												})
										.inputValidator({
											onerror : "请输入登录密码"
										})
										.regexValidator(
												{
													regexp : "\\S+#^[A-Za-z0-9_]{6,16}$",
													onerror : "请输入登录密码#6~16个字符(数字，字母和下划线组成，字母区分大小写。)"
												});

								$("#login_pwd_txt")
										.formValidator(
												{
													tipid : "login_pwd_txt_Tip",
													onfocus : "请输入登录密码：6-16个字符(数字，字母和下划线组成，区分大小写。)",
													q2b : true,
													'defaultvalue' : ''
												})
										.regexValidator(
												{
													regexp : "\\S+#^[A-Za-z0-9_]{6,16}$",
													onerror : "请输入登录密码#6~16个字符(数字，字母和下划线组成，字母区分大小写。"
												});

							});

			$("#Button1")
					.click(
							function() {
								if ($("tr[name='log']").length > 0
										&& ($("tr[name='reg']").css("display") == "none")) {
									if ($.user_fabu.u_login($("#login_txt")
											.val(), $("#login_pwd_txt").val())) {
										return true;
									} else {
										$("#login_txt_Tip").removeClass();
										$("#login_txt_Tip")
												.html(
														"<span class=\"c2\"><span class=\"action_po\"><span class=\"action_po_top\">用户名或密码错误</span><span class=\"action_po_bot\"></span></span></span>");
										return false;
									}
								} else if ($("tr[name='reg']").length > 0
										&& ($("tr[name='log']").css("display") == "none")) {
									if ($.user_fabu.u_register($(
											"#register_txt").val(), $(
											"#register_pwd_txt").val(), $(
											"#register_shouji_txt").val()) == true) {
										return true;
									} else {
										return false;
									}
								} else {
									return true;
								}
							});

			$("#Button2").click(function() {
				if ($("tr[name='reg']").length > 0) {
					return getyzm("#register_shouji_txt_Tip");
				}
			});
			function checkReg_Name(a) {
				var d = 0;
				a = a.split("");
				for ( var e = 0; e < a.length; e++)
					if (a[e].charCodeAt(0) < 299)
						d++;
					else
						d += 2;
				return d
			}

			$("#biaoqian_ddl").hide();
			$("#leibie_ddl").keyup(function(event) {
				if (event.keyCode == 40) /*向上按钮*/{
					show_BQ($(this));
				} else if (event.keyCode == 38) /*向下按钮*/{
					show_BQ($(this));
				}
			}).change(function() {
				show_BQ($(this));
			});
		</script>

		<script type="text/javascript">
			function reinitIframes() {
				var iframed = document.getElementById("fabu_iframe_img");
				try {
					var bHeightd = iframed.contentWindow.document.body.scrollHeight;
					var dHeightd = iframed.contentWindow.document.documentElement.scrollHeight;
					var heightd = Math.min(bHeightd, dHeightd);
					iframed.height = heightd;
				} catch (ex) {
				}
			}
			window.setInterval("reinitIframes()", 200);
		</script>

	</form>
</body>
</html>